package com.diandian.backend.entrance.client.dto.dingding;

import java.util.List;

public class OapiV2DepartmentListsubResponse extends TaobaoResponse {
    private Long errcode;
    private String errmsg;
    private List<DeptBaseResponse> result;

    public OapiV2DepartmentListsubResponse() {
    }

    public void setErrcode(Long errcode) {
        this.errcode = errcode;
    }

    public Long getErrcode() {
        return this.errcode;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getErrmsg() {
        return this.errmsg;
    }

    public void setResult(List<DeptBaseResponse> result) {
        this.result = result;
    }

    public List<DeptBaseResponse> getResult() {
        return this.result;
    }

    public boolean isSuccess() {
        return this.getErrcode() == null || this.getErrcode().equals(0L);
    }

    public static class DeptBaseResponse {
        private Boolean autoAddUser;
        private Boolean createDeptGroup;
        private Long deptId;
        private String ext;
        private Boolean fromUnionOrg;
        private String name;
        private Long parentId;
        private String sourceIdentifier;
        private String tags;

        public DeptBaseResponse() {
        }

        public Boolean getAutoAddUser() {
            return this.autoAddUser;
        }

        public void setAutoAddUser(Boolean autoAddUser) {
            this.autoAddUser = autoAddUser;
        }

        public Boolean getCreateDeptGroup() {
            return this.createDeptGroup;
        }

        public void setCreateDeptGroup(Boolean createDeptGroup) {
            this.createDeptGroup = createDeptGroup;
        }

        public Long getDeptId() {
            return this.deptId;
        }

        public void setDeptId(Long deptId) {
            this.deptId = deptId;
        }

        public String getExt() {
            return this.ext;
        }

        public void setExt(String ext) {
            this.ext = ext;
        }

        public Boolean getFromUnionOrg() {
            return this.fromUnionOrg;
        }

        public void setFromUnionOrg(Boolean fromUnionOrg) {
            this.fromUnionOrg = fromUnionOrg;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Long getParentId() {
            return this.parentId;
        }

        public void setParentId(Long parentId) {
            this.parentId = parentId;
        }

        public String getSourceIdentifier() {
            return this.sourceIdentifier;
        }

        public void setSourceIdentifier(String sourceIdentifier) {
            this.sourceIdentifier = sourceIdentifier;
        }

        public String getTags() {
            return this.tags;
        }

        public void setTags(String tags) {
            this.tags = tags;
        }
    }
}